package com.ztgf.sys.models.vo;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 发送信息布告表VO
 *
 * @author liyqng
 * @Date 2021-05-13 17:03:03
 */
@Data
public class SysNoticeVO implements Serializable {
    @ApiModelProperty(value = "主键")
    private Long id;
    @ApiModelProperty(value = "乐观锁")
    private Integer revision;
    @ApiModelProperty(value = "创建人")
    private Long createUserId;
    @ApiModelProperty(value = "更新人")
    private Long updateUserId;
    @ApiModelProperty(value = "内容")
    private String content;
    @ApiModelProperty(value = "状态 0未发送，1发送成功，2发送失败")
    private Integer status;
    @ApiModelProperty(value = "接收对象名称")
    private String name;
    @ApiModelProperty(value = "店铺ids 多个以逗号分隔")
    private String shopIds;
    @ApiModelProperty(value = "电话号码， 多个以逗号分隔")
    private String mobiles;
    @ApiModelProperty(value = "状态 0短信，1邮件，2系统")
    private Integer type;
    @ApiModelProperty(value = "状态 0全部用户，1全部店铺(包含子账户)，2全部旗舰店，3全部专卖店，4全部专营店，5全部买家（全部注册用户），")
    private Integer sendType;
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    @ApiModelProperty(value = "更新时间")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
    @ApiModelProperty(value = "发布人")
    private String createUserName;
    @ApiModelProperty(value = "邮件标题")
    private String mailTitle;
    @ApiModelProperty(value = "邮件编号")
    private String number;
}
